package com.ymatou.iapi.push.testcase;

import com.ymatou.iapi.push.parameter.apnstaskpushBean;
import com.ymatou.iapi.push.service.apnstaskpushCall;
import com.ymatou.iapi.push.service.decomposeCall;
import com.ymt.core.tool.Logger;
import com.ymt.utils.annotation.TestCase;
import com.ymt.utils.annotation.TestSuite;
import com.ymt.utils.tag.P1;
import org.junit.*;
import org.junit.experimental.categories.Category;
/**
*APNs分批推送接口
*FreeMaker Template自动生成代码
*/
@TestSuite
public class Ts_apnstaskpush{
	private static apnstaskpushBean apnstaskpushBean;
	private static apnstaskpushCall apnstaskpushCall;
	private static decomposeCall decomposeCall;
	@BeforeClass
	public static void setUp() {
		Logger.createResultFile("APNs分批推送接口");
	}

	@Before
	public void caseUp() {
		apnstaskpushBean=new apnstaskpushBean();
		apnstaskpushCall=new apnstaskpushCall();
		decomposeCall = new decomposeCall();
	}

	@AfterClass
	public static void tearDown() {
		Logger.generateResult(apnstaskpushCall.getOpurl());
	}

	@After
	public void caseDown() {
		Logger.end();
	}
	@Test
	@Category({P1.class})
	@TestCase
	public void Tc_apnstaskpush_001() {
		Logger.start(true,"APNs分批推送接口");
		try {

			apnstaskpushCall.setData(apnstaskpushBean);
			apnstaskpushCall.callService();

		} catch (Exception e) {
			Logger.fail(e);
		}
	}
}